Set Hostname
2015/10/25 |
This is the example for setting Hostname of your system.
|
|
[1] | Change hostname with a commnad (but if rebooting, it will be back). |
# change hostname root@ubuntu:~# hostname dlp root@ubuntu:~# dlp # just changed |
[2] | Change hostname permanently. |
root@ubuntu:~#
hostnamectl set-hostname dlp # display settings root@ubuntu:~# Static hostname: dlp Icon name: computer-vm Chassis: vm Boot ID: 4c2bfd4980a84fef8882b5a5939e5624 Virtualization: kvm Operating System: Ubuntu 14.04.3 LTS Kernel: Linux 3.13.0-66-generic Architecture: x86_64 |